<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace OSS\Model;

class GetLiveChannelInfo implements XmlConfig
{
    private $description;
    private $status;
    private $type;
    private $fragDuration;
    private $fragCount;
    private $playlistName;
    public function getDescription()
    {
        return $this->description;
    }
    public function getStatus()
    {
        return $this->status;
    }
    public function getType()
    {
        return $this->type;
    }
    public function getFragDuration()
    {
        return $this->fragDuration;
    }
    public function getFragCount()
    {
        return $this->fragCount;
    }
    public function getPlayListName()
    {
        return $this->playlistName;
    }
    public function parseFromXml($strXml)
    {
        $xml = simplexml_load_string($strXml);
        $this->description = strval($xml->Description);
        $this->status = strval($xml->Status);
        if(isset($xml->Target)) {
            foreach ($xml->Target as $target) {
                $this->type = strval($target->Type);
                $this->fragDuration = strval($target->FragDuration);
                $this->fragCount = strval($target->FragCount);
                $this->playlistName = strval($target->PlaylistName);
            }
        }
    }
    public function serializeToXml()
    {
        throw new OssException("Not implemented.");
    }
}

?>